/**
 * Created by Administrator on 2016/9/22.
 */
(function($){ $(function() {
   var oList = $(".nav-tp .lis1"),
       oNavtp = $(".nav-bt");

      oList.on("mouseenter",function(){
          oNavtp.css({display:"block"});
      });
      oList.on("mouseleave",function(){
          oNavtp.css({display:"none"});
      });
      oNavtp.on("mouseenter",function(){
          oNavtp.css({display:"block"});
      });
      oNavtp.on("mouseleave",function(){
          oNavtp.css({display:"none"});
      })
    var
        oRightA= $(".right a"),
        oRightTpy = $(".right-tp .yc"),
        oBtright= $(".right-tp");
      oRightA.click(function(){

          if(oRightTpy.css("top")=="-92px"){
              oRightTpy.animate({top:"10"},20);
              oBtright.animate({height:"131px"},100);
          }
          else{
              oRightTpy.animate({top:"-92"},50);
              oBtright.animate({height:"59px"},100);
          }

      });

      var
          iILisp = $(".lsp"),
          iILispan = $(".lsp span"),
          iILiem = $(".lsp em");


      iILisp.mouseenter(function(){
         iILispan.css({color:"red"});
          iILiem.css({zIndex:"1"});
      })
      iILisp.mouseleave(function(){
          iILispan.css({color:"#ccc"});
          iILiem.css({zIndex:"-1"});
      })

      var

          oBtShop= $(".coll-le .pp3"),
          oBtA= $(".coll-le .aap"),
          iIdex4= 0,
          iTimerq = 0;
        oBtA.on("click",function(){
          iIdex4=oBtA.index($(this));
         iTimerq=setTimeout(function(){
              oBtShop.css({display:"none"}).eq(iIdex4).css({display:"block"});
          },2000);

          iTimerq=setTimeout(function(){
              oBtShop.eq(iIdex4).css({display:"none"});
          },4000);
      });


       var
           oAa2= $(".foot-bt .a2");

      oAa2.click(function(){
          oAa2.removeClass("act").eq(oAa2.index($(this))).addClass("act");

      })


 });
})(jQuery)